ai2472206...@yeah.net schrieb am 25.04.2024 um 10:24:
hi!
I'm new to ConTeXt. I want to define a command with sidenote function. This
[setupsidenote] command inherits the options of [setupmargindata],
[setupcounter] and [setupframed]. just like [setupenumeration] inherits the
option
re is no way to "inherit" functionality.
You still need to write \setupsidenote to call \setupcounter, \setupframed at
the right points to achieve the right effects.
What you can do is have \setupsidenote accept all options in one big long list
and then pass the ones that apply to se
hi!
I'm new to ConTeXt. I want to define a command with sidenote function. This
[setupsidenote] command inherits the options of [setupmargindata],
[setupcounter] and [setupframed]. just like [setupenumeration] inherits the
option of [setupcounter].
I've defined the following sidenote command
contentbox\hss)}}
> % \protected\def\RightNumber{\hbox to
> \localboxesparameter{width}{\strut(\hss\box\localboxcontentbox)}}
>
> % using the provided line number:
>
> % \def\LineNumberL{\the\localboxlinenumber}
> % \def\LineNumberR{\the\localboxlinenumber}
>
> % using a
]
\definecounter[MyLineNumberR]
\setupcounter[MyLineNumberL][numberconversion=characters]
\setupcounter[MyLineNumberR][numberconversion=romannumerals]
\def\LineNumberL{\incrementcounter[MyLineNumberL]\convertedcounter[MyLineNumberL]}
\def\LineNumberR{\incrementcounter[MyLineNumberR]\convertedcounter
ended command to use, but the wiki
of setupcation (https://wiki.contextgarden.net/Command/setupcaption) says
it inherits from setupcounter which has both numberstarter and
prefixstarter defined in the same way.
Adam
s number 1.1.1 and is in the list as 1.1.1, the formula has
> > number 1.1 but is listed as 1.1.1.
> > I would like to have the formula numbered 1.1.1 as well (as referenced
> > in the placelist), so with section and subsection numbering.
> you need to add: prefixset=a
with section and subsection numbering.
you need to add: prefixset=all (default is limited to 3, see strc-def)
\starttext
\setupcounter[formula][way=bytext]
\setupcaption[figure][way=bytext,prefixsegments=1:*]
\setupformulas[way=bytext,prefixsegments=1:*,prefixset=all]
\startchapter
...@ub.unibe.ch wrote:
Not tested, but what about this?
\setupcounter[chapter][way=bytext]
Best,
Denis
-Ursprüngliche Nachricht-
Von: ntg-context Im Auftrag von jbf
Gesendet: Mittwoch, 6. Januar 2021 10:24
An: mailing list for ConTeXt users
Betreff: [NTG-context] Continued chapter numbers
I
Not tested, but what about this?
\setupcounter[chapter][way=bytext]
Best,
Denis
> -Ursprüngliche Nachricht-
> Von: ntg-context Im Auftrag von jbf
> Gesendet: Mittwoch, 6. Januar 2021 10:24
> An: mailing list for ConTeXt users
> Betreff: [NTG-context] Continued chapter
t;
> % setup definitions
> \definecounter[subfigure][way=bytext,prefix=no]
> \setupcounter[subfigure][state=start,numberconversion=a]
> \setcounter[subfigure][1]
>
> \def\setsubfigures
> {\setcounter[subfigure][1]
>\incrementcounter[figure]
>
>
> \setupca
> On 24 Aug 2020, at 19:59, Wolfgang Schuster
> wrote:
>
>>
>>
>> \setcounter[figure][5] % next figure is no.6
For this subfigure stuff, perhaps this is useful?
% setup definitions
\definecounter[subfigure][way=bytext,prefix=no]
\setupcounter[subfigure][s
) – does section use a different counter name or is it
no counter at all?
\setnumber[figure][10] works (but only with integers, not some alphanumerical
stuff, sorry Duncan).
\setupnumber is a synonym of \setupcounter and exists for backwards
compatibility.
Hraban
\useMPlibrary[d
Willi Egger schrieb am 29.07.2020 um 21:43:
Good evening!
I am trying to make use of the userpagenumber counter. I have a book at hand,
where I need to adjust the start of the pagenumbering.
It appears to me, that the \setupcounter[userpagenumber[state=stop] and later
the \setupcounter
Good evening!
I am trying to make use of the userpagenumber counter. I have a book at hand,
where I need to adjust the start of the pagenumbering.
It appears to me, that the \setupcounter[userpagenumber[state=stop] and later
the \setupcounter[userpagenumber][state=start,start=7] is not giving
counter.
Although method is page, this seems to be related to a different issue.
My question is: how could I get new pagenumber series using \definecounter?
\setuppapersize[A8]
\setupheadertexts[]
\setupcounter[subpage][way=bychapter]
\starttext
\chapter{what}
\rawsubcountervalue[subpage][1
[chapter] use the realpage counter?
According to i-context.pdf, \placelist inherits from \setuplist (which
also inherits from \setupcounter).
While \setuplist inherits values from \setupcounter doesn't mean it
supports all of them and keys like "counter" work only when you create a
ne
-context.pdf, \placelist inherits from \setuplist (which
also inherits from \setupcounter).
I really need that, since the document I’m composing needs chapter and
part page numbering independent from the whole document page numbering.
Am I missing something or have I hit a bug?
Many thanks for your
:37, Aditya Mahajan wrote:
>
> On Thu, 9 Aug 2018, Robert Zydenbos wrote:
>
>> I have tried ‘\resetcounter [footnote]’ (a suggested solution on that web
>> page), but it does not work (at least not in MkII+XeTeX). ‘\setupcounter
>> [footnote] [0]’ (also suggested
]’ (a suggested solution on that web
page), but it does not work (at least not in MkII+XeTeX). ‘\setupcounter
[footnote] [0]’ (also suggested on that web page) is rejected as an error.
Can you post a minimal example. Because the following works in MKII (counter
reset at each chapter
is called. As bypage and
bysection both don't do that, I need to be able to manually adjust the
numbering.”
I have tried ‘\resetcounter [footnote]’ (a suggested solution on that web
page), but it does not work (at least not in MkII+XeTeX). ‘\setupcounter
[footnote] [0]’ (also suggested on that web
:37, Aditya Mahajan wrote:
>
> On Thu, 9 Aug 2018, Robert Zydenbos wrote:
>
>> I have tried ‘\resetcounter [footnote]’ (a suggested solution on that web
>> page), but it does not work (at least not in MkII+XeTeX). ‘\setupcounter
>> [footnote] [0]’ (also suggested
On Thu, 9 Aug 2018, Robert Zydenbos wrote:
I have tried ‘\resetcounter [footnote]’ (a suggested solution on that
web page), but it does not work (at least not in MkII+XeTeX).
‘\setupcounter [footnote] [0]’ (also suggested on that web page) is
rejected as an error.
Can you post a minimal
.”
I have tried ‘\resetcounter [footnote]’ (a suggested solution on that web
page), but it does not work (at least not in MkII+XeTeX). ‘\setupcounter
[footnote] [0]’ (also suggested on that web page) is rejected as an error.
Robert
The correct key to set the period after the number is "numberstopper"
which is inherited from \setupcounter.
Wolfgang
Pablo Rodriguez schrieb am 24.07.18 um 17:09:
On 07/24/2018 11:04 AM, Fabrice Couvreur wrote:
Hi Pablo,
Thank you Pablo for your answer that corresponds to what I
can
automatically use the conversion mechanism?
\definecounter[idris]%[numberconversion=R]
\starttext
\incrementcounter[idris]
\convertedcounter[idris]
\incrementcounter[idris]
\convertedcounter[idris][numberconversion=a]
\incrementcounter[idris]
\convertedcounter[idris]
\setupcounter[idr
n=R]
\starttext
\incrementcounter[idris]
\convertedcounter[idris]
\incrementcounter[idris]
\convertedcounter[idris][numberconversion=a]
\incrementcounter[idris]
\convertedcounter[idris]
\setupcounter[idris][numberconversion=r]
\incrementcounter[idris]
\convertedcounter[idris]
\st
Hi Robert,
Sorry I didn’t pay attention to the way you wanted the formatting of sub-items.
If you want to remove the separator between numbers, then you may add the
following two line after the setups of your itemgroups:
\defineseparatorset[nothing][][]
\setupcounter[itemgroup:itemize
two sides.
>> \stoptheorem
>> \stoptext
>>
>> QUESTIONS:
>> 1) I would like to prefix the theorem counter with the chapter number, such
>> that the number of the second theorem becomes 2.1. Can this be done?
>> 2) Is it possible to circumvent the misplacement of
Florian Leupold <mailto:fleup...@posteo.net>
4. September 2016 um 19:37
Issues with the documentation:
- In “ConTeXt Commands”, it says on page 224 that \setupenumeration
inherits from \setupcounter; but in “ConTEXt reference manual", it
says on page 246 that \setupenumerations in
e theorem counter with the chapter number, such
> that the number of the second theorem becomes 2.1. Can this be done?
> 2) Is it possible to circumvent the misplacement of the second theorem due to
> the placed figure? Ideally, the theorem would just use the space to the left
> it.
&
the space to the left it.
Issues with the documentation:
- In “ConTeXt Commands”, it says on page 224 that \setupenumeration inherits
from \setupcounter; but in “ConTEXt reference manual", it says on page 246 that
\setupenumerations inherits from \setupdescriptions.
- In “ConTEXt reference m
On 4/27/2015 11:24 AM, Aditya Mahajan wrote:
Hi,
How does one change the numberconversion for math formulas? The old method:
\setupformulas[numberconversion=set 1]
\starttext
\placeformula
\startformula
E = mc^2
\stopformula
\stoptext
does not appear to work.
\setupcounter[formula
not appear to work.
\setupcounter[formula][numberconversion=set 1]
Using `characters` as numberconversion works, but `set 1` does not.
Aditya
___
If your question is of interest to others as well, please add an entry
\placeformula
\startformula
E = mc^2
\stopformula
\stoptext
does not appear to work.
\setupcounter[formula][numberconversion=set 1]
Using `characters` as numberconversion works, but `set 1` does not.
Your original example with \setupformulas[numberconversion=set 1] works for me
[numberconversion=set 1]
\starttext
\placeformula
\startformula
E = mc^2
\stopformula
\stoptext
does not appear to work.
\setupcounter[formula][numberconversion=set 1]
Using `characters` as numberconversion works, but `set 1` does not.
Your original example with \setupformulas
for math formulas? The old
method:
\setupformulas[numberconversion=set 1]
\starttext
\placeformula
\startformula
E = mc^2
\stopformula
\stoptext
does not appear to work.
\setupcounter[formula][numberconversion=set 1]
Using `characters` as numberconversion works, but `set 1` does not.
Your
] http://www.ntg.nl/pipermail/ntg-context/2015/080866.html
PS: You have to change \setupcounters to \setupcounter to fix the error message
from Hans solution because there is only a singular version of the counter
command.
Wolfgang
There was a similar problem a few days ago with a solution by Hans [1].
[1] http://www.ntg.nl/pipermail/ntg-context/2015/080866.html
PS: You have to change \setupcounters to \setupcounter to fix the error
message
from Hans solution because there is only a singular version of the counter
command
. You have to use the \setupcounter command to set a continues numbering.
\setupcounter[itemgroup:itemize][way=bytext]
\setupitemgroup[itemize][each][n,continue]
\starttext
\dorecurse{2}
{\chapter{First chapter}
\dorecurse{2}
{\startitemize
\dorecurse{3}{\item Item \recurselevel
I doing something wrong is this a bug?
\starttext
\setupcounter[userpage][10]
\dorecurse{3}{
\input tufte
\page
}
\stoptext
current version: 2013.05.28 00:36
= Doesn't start at page 10 but at page 1
Cheers,
Tim
On 2013–06–05 Tim Steenvoorden wrote:
I doing something wrong is this a bug?
\starttext
\setupcounter[userpage][10]
\setcounter [userpage] [10]
Marco
signature.asc
Description: Digital signature
___
If your
Oh god, stupid me.
Thanks, Marco!
Cheers,
Tim
Op woensdag 5 juni 2013, om 12:54 heeft Marco Patzer het volgende geschreven:
On 2013–06–05 Tim Steenvoorden wrote:
I doing something wrong is this a bug?
\starttext
\setupcounter[userpage][10]
\setcounter [userpage
, the number option for \setuppagenumber is gone and you have to use
\setupcounter. Even though this breaks backward compatibility it’s now constant
with \setupheadnumber which is used to change the start value for sections.
Wolfgang
Wolfgang Schuster writes:
Yes, the number option for \setuppagenumber is gone and you have to use
\setupcounter. Even though this breaks backward compatibility it’s now
constant
with \setupheadnumber which is used to change the start value for sections.
Thank you, Wolfgang. I added
On 03/26/2013 06:07 PM, Wolfgang Schuster wrote:
1. \setuppagenumber is a synonym for \setupuserpagenumber
2. The “number=XX” setting doesn’t work in MkIV and you have to use
\setupcounter.
Thank you for your words of wisdom, Wolfgang. Wouldn't it make sense to
have backwards compatibility
On 3/27/2013 9:21 AM, Thomas A. Schmitz wrote:
On 03/26/2013 06:07 PM, Wolfgang Schuster wrote:
1. \setuppagenumber is a synonym for \setupuserpagenumber
2. The “number=XX” setting doesn’t work in MkIV and you have to use
\setupcounter.
Thank you for your words of wisdom, Wolfgang. Wouldn't
that \setupuserpagenumber was the
proper way to do those things.
1. \setuppagenumber is a synonym for \setupuserpagenumber
2. The “number=XX” setting doesn’t work in MkIV and you have to use
\setupcounter.
Wolfgang
___
If your
('punctuation'?) which affects what comes
between numbers, so that you can produce e.g. '1.', '1:a.', and
'1:a:1.'. Or indeed '1a1'. Is there such an option?
Add these two lines to your itemize setups:
\defineseparatorset[none][][]
\setupcounter[itemgroup:itemize][numberseparatorset=none
Add these two lines to your itemize setups:
\defineseparatorset[none][][]
\setupcounter[itemgroup:itemize][numberseparatorset=none]
Thanks; I've added that (and the repeat key) to
http://wiki.contextgarden.net/Enumerations#Customization_details_and_examples
--Sietse
~]
\defineconversion
[words]
[One, Two, Three, Four, Five]
\definecounter [mycount]
\setupcounter [mycount] [numberconversion=words]
\setuphead
[chapter]
[header=high,
command=\MyChapterTitle,
style=\bfc,
conversion=words,
numberstyle=\bfb]
\stopenvironment
\startproduct prds2
]
\setupcounter [mycount] [numberconversion=words]
\setuphead
[chapter]
[header=high,
command=\MyChapterTitle,
style=\bfc,
conversion=words,
numberstyle=\bfb]
\stopenvironment
And my test component file:
\startcomponent pt1
\product prds2 % but you can use it in other
, Three, Four, Five]
\definecounter [mycount]
\setupcounter [mycount] [numberconversion=words]
\starttext
\dorecurse{5}{%%
\incrementcounter [mycount]
\convertedcounter [mycount]}
\stoptext
Maybe there is a conversion built-in that does this automatically
without having
On 15-9-2012 20:06, Aditya Mahajan wrote:
On Sat, 15 Sep 2012, Wolfgang Schuster wrote:
Am 15.09.2012 um 00:06 schrieb Aditya Mahajan adit...@umich.edu:
Thanks for the diagnosis. What will be a good way to fix this? I
think that
\expanded{\setupcounter[#1][\c!start=\ifx\p_start\empty0\else
Am 15.09.2012 um 00:06 schrieb Aditya Mahajan adit...@umich.edu:
Thanks for the diagnosis. What will be a good way to fix this? I think that
\expanded{\setupcounter[#1][\c!start=\ifx\p_start\empty0\else\number\p_start\fi.,...]}
should work (but I haven't tested it yet).
I would do
On Sat, 15 Sep 2012, Wolfgang Schuster wrote:
Am 15.09.2012 um 00:06 schrieb Aditya Mahajan adit...@umich.edu:
Thanks for the diagnosis. What will be a good way to fix this? I think that
\expanded{\setupcounter[#1][\c!start=\ifx\p_start\empty0\else\number\p_start\fi.,...]}
should work
\strc_counter_setup_using_parameter#1#2% name \someparameter
{\edef\p_start{#2\c!start}%
\setupcounter
[#1]
[ \c!start=\ifx\p_start\empty0\else\number\p_start\fi,
...
\c!numbersegments=#2\c!numbersegments]}
As you can see here the start parameter expands
\someparameter
{\edef\p_start{#2\c!start}%
\setupcounter
[#1]
[ \c!start=\ifx\p_start\empty0\else\number\p_start\fi,
...
\c!numbersegments=#2\c!numbersegments]}
As you can see here the start parameter expands to \p_start when it isn’t
of the pagenumber outside of the sectionblock environment,
% the first argument takes the name of the conversion which is
applied to the % userpage counter with
\setupcounter[userpage][numberconversionset=pagenumber]. % % You can
set a conversion for a certain sectionblock when you write the name
[numberconversion=romannumerals] % to set the
conversion of the pagenumber outside of the sectionblock environment,
% the first argument takes the name of the conversion which is
applied to the % userpage counter with
\setupcounter[userpage][numberconversionset=pagenumber]. % % You can
set
which is applied to the
% userpage counter with \setupcounter[userpage][numberconversionset=pagenumber].
%
% You can set a conversion for a certain sectionblock when you write the name
% of the block before the name of the conversion set separated by a “:”.
%
%\defineconversionset
,
% the first argument takes the name of the conversion which is applied to the
% userpage counter with
\setupcounter[userpage][numberconversionset=pagenumber].
%
% You can set a conversion for a certain sectionblock when you write the name
% of the block before the name of the conversion set
that `\setnumber' is ok to
use with `[]{}'.
In MkIV the real names for the counter mechanism are
- \definecounter
- \setupcounter
- \incrementcounter
- \convertedcounter
- …
but for backward compatibility (the names are mentioned in manuals) the old
names from MkII are synonyms with the same syntax
{dawkins}\footnote{Another note.}
\stoptext
Counter settings are applied with the \setupnotation command.
(I do not find numberconversion in strc-not.mkvi;
nevertheless, numbered footnotes do not get reset
on each page.)
Footnotes use a internal version of \setupcounter for the counter setups
64 matches
Mail list logo